import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) {
        int a = 2 + (2-2)/2;
        System.out.println(a);
        int[] arr = {1,2,3,4,5,8,9,20};
        Arrays.sort(arr);
        System.out.println(Arrays.binarySearch(arr,5));


        //只出现一次的数字  使用异或
        int[] arr1 = {1,2,2,3,4,4,3};
        int ret = arr1[0];
        for (int i = 1; i < arr1.length; i++) {
            ret ^=arr1[i];
        }
        System.out.println("只出现一次的数字为:"  + ret);



    }
}
